package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysHotelRoom;
import org.apache.ibatis.annotations.Param;

/**
 * 房型Mapper接口
 * 
 * @author dht
 * @date 2025-04-28
 */
public interface SysHotelRoomMapper 
{
    /**
     * 查询房型
     * 
     * @param hotelRoomId 房型主键
     * @return 房型
     */
    public SysHotelRoom selectSysHotelRoomByHotelRoomId(Long hotelRoomId);

    /**
     * 查询房型列表
     * 
     * @param sysHotelRoom 房型
     * @return 房型集合
     */
    public List<SysHotelRoom> selectSysHotelRoomList(SysHotelRoom sysHotelRoom);

    /**
     * 新增房型
     * 
     * @param sysHotelRoom 房型
     * @return 结果
     */
    public int insertSysHotelRoom(SysHotelRoom sysHotelRoom);

    /**
     * 修改房型
     * 
     * @param sysHotelRoom 房型
     * @return 结果
     */
    public int updateSysHotelRoom(SysHotelRoom sysHotelRoom);

    /**
     * 删除房型
     * 
     * @param hotelRoomId 房型主键
     * @return 结果
     */
    public int deleteSysHotelRoomByHotelRoomId(Long hotelRoomId);

    /**
     * 批量删除房型
     * 
     * @param hotelRoomIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysHotelRoomByHotelRoomIds(Long[] hotelRoomIds);

    List<SysHotelRoom> listByHotelId(Long hotelId);

    SysHotelRoom selectSysHotelRoomByHotelIdAndType(@Param("hotelId") Long hotelId, @Param("type") Long hotelRoomType);
}
